package com.esb.transport.message;


public abstract class AbstractMessage {

	//消息头
	private String version;
	private int sourceInstance; //源服务实例号
	private int destInstance; //目标服务实例号
	private long id; //标识符
	private int length; //body长度 

	private byte[] bytes; //完整消息流

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public int getSourceInstance() {
		return sourceInstance;
	}

	public void setSourceInstance(int sourceInstance) {
		this.sourceInstance = sourceInstance;
	}

	public int getDestInstance() {
		return destInstance;
	}

	public void setDestInstance(int destInstance) {
		this.destInstance = destInstance;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public int getLength() {
		return length;
	}

	public void setLength(int length) {
		this.length = length;
	}
	
	public byte[] getBytes() {
		return bytes;
	}

	public void setBytes(byte[] bytes) {
		this.bytes = bytes;
	}
}
